Repository navigation
test(repo-guards): tie the fixture prefilter to its resolver and cover the producer skip branches - #4898
Merged
thymikee merged 2 commits intoNov 21, 2026
Conversation
…s own resolver The prefilter re-derived resolveLocalImport's candidate paths by hand, so a later resolver change (a new extension, for example) could narrow it silently. It now passes every quoted text that opens with `.` in an unescaped file through resolveLocalImport itself. Without escapes, a request's text is its value, so this stays a superset of each file's relative requests. Files with a backslash stay candidates for every member. The text scan includes overlapping quote pairs, so a stray quote earlier on the line cannot consume a request's opening quote. A new case covers that. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… branches The skip regex kept modules with a backslash or a `PRODUCER` name, but only the live repo exercised those branches. Two example modules now need them: an escaped `produc\u0065r` key, and a lone `*_PRODUCER` constant. Each case fails when its branch is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Thanks for the tight change. At 92ac51f, the fixture prefilter is now tied to its resolver, and the new cases cover the producer skip branches. The code looks correct to me, and no conflicts are known. Both non-passing checks are the cancelled "Body rules" runs, which look unrelated because this diff touches no PR-body route. Re-run them if the merge gate needs them green. Not verified here: the new tests, the repo-wide scan, the timing numbers, the violation counts and the full-unit result were not run, and the claim that each new case fails without its branch rests on reading the code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to the non-blocking review notes on #4885, which merged before they landed.
resolveLocalImport's candidate paths by hand, so a later resolver change (a new extension, for example) could narrow it silently. In a file with no backslash, every quoted text that opens with.now goes throughresolveLocalImportitself. Without escapes, a request's text is its value, so this stays a superset. Files with a backslash stay possible importers of every member. The scan includes overlapping quote pairs, so a stray quote earlier on the line cannot hide a request.PRODUCERbranches. Two example modules now need them: an escaped key and a lone*_PRODUCERconstant.Related: #4512 saw the producer scan time out. No open issue tracks these tests.
Validation
9f653a66e(same files):c37bb9563and the new fixture scan both return 0 violations. With a raw launcher appended to every non-declaration file, both return the same 19.daemon-fixture-launchestakes 1.4-1.9 s at load 4.6-6, against 3.4-3.8 s before test: keep three slow repo-scan and fuzz tests clear of the 5 s timeout #4885.PRODUCERbranch.pnpm check:affected --run --head 92ac51fc5passed every runnable check, including full unit (21,400 passed).Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.